﻿@model User
<div class="user-right">
    <!-- 展示用户信息界面-->
    <div class="user-stock" style="margin-top: 0; display: block;">
        <div class="user-l f">
            <label class="f20 fb">个人信息</label>
        </div>
        <div class="user-l">
            <label>用户名</label>@Model.UserName
        </div>
        <div class="user-l">
            <label>真实姓名</label>
            @if (string.IsNullOrEmpty(Model.UserTrueName))
            {
                @Html.Raw("未认证")
                <a href="@Url.DomainRouteUrl(AreasConfig.Web, "security", "user")" class="blue">认证</a>
            }
            else
            {
                @Model.UserTrueName
            }
        </div>
        <div class="user-l">
            <label>省份证号</label>
            @if (string.IsNullOrEmpty(Model.UserCard))
            {

                @Html.Raw("未认证")
                <a href="@Url.DomainRouteUrl(AreasConfig.Web, "security", "user")" class="blue">认证</a>
            }
            else
            {
                @Model.UserCard
            }

        </div>
        <div class="user-l">
            <label>手机号码</label>@Model.Phone
        </div>
        <div class="user-l">
            @if (string.IsNullOrEmpty(Model.Email))
            {
                <label>邮箱地址</label>@("未认证")
                <a href="@Url.DomainRouteUrl(AreasConfig.Web, "security", "user")" class="blue">绑定</a>
            }
            else
            {
                <label>邮箱地址</label>@Model.Email
            }
        </div>
        <div class="user-l">
            <label>婚姻状况</label>@(CommonFunc.GetIsMarriageText(Model.IsMarriage))
        </div>
        <div class="user-l">
            <label>居住地址</label>@(string.IsNullOrEmpty(Model.Address) ? "未填写" : Model.Address)
        </div>
        <div class="user-l">
            <label>最高学历</label>@(CommonFunc.GetEducationText(Model.Education))
        </div>
        <div class="user-l">
            <label>所属行业</label>@(CommonFunc.GetIndustryText(Model.Industry))
        </div>
        <div class="user-l">
            <label>职业</label>@(CommonFunc.GetPositionText(Model.Position))
        </div>
        <div class="user-l">
            <label>月收入</label>@(CommonFunc.GetMonthlySalaryText(Model.MonthlySalary))
        </div>
        <div class="user-l">
            <a class="button red up" href="@Url.DomainRouteUrl(AreasConfig.Web, new { controller = "User", action = "UserEdit",id=Model.UserId })" style="display: block;text-decoration: none">修改信息</a>
        </div>
    </div>
</div>
